import request from 'utils/request.js'

/**
 *
 * @param {string} mobile
 * @param {string} code
 * @returns
 */
export const login = (mobile, code) => {
  return request({
    url: '/authorizations',
    method: 'post',
    data: {
      mobile,
      code,
    },
  })
}

export const getUserInfo = () => {
  return request({
    url: 'user/profile',
    method: 'get',
  })
}
